<%@page import="java.sql.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎登陆</title>
</head>
<body>
<h1>登录界面</h1>
<form action="login" method="post">
	用户名：<input type="text" name="username"/><br/>
	密码：<input type="password" name="pwd"/><br/>
	<input type="submit" value="登录"><br/>
</form>

<%
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
	Date d = new Date(session.getCreationTime());
	
%>
本次会话创建时间：<%=sdf.format(d)%>
</body>
</html>